Table of Contents
So I want to install OpenWrt on Netgear WNDR4300.
Currently, stable release is 18.06.1 which is merged with LEDE.
After days of trial, I stick to 17.01.4 which can run ssr and other cool packages.
1 Prep
If the device can run a shell, gather device info by these commands.
1 | ssh user@router.ip |
2 Image Release
It's recommanded to read start guide first, then download the appropriate image file.
First-time installation on a device, or flashing openwrt firmware, choose the factory install
wndr4300 image.1
1 | tftp 192.168.1.1 |
Sysupgrading an existing openwrt device on it's web admin GUI, choose wndr4300 system upgrade file. Compileing package with corresponding openwrt device's SDK file, choose ar71xx SDK.
3 Signal Strength
- Choose
Country
asUS
, which has unlimitedTransmit Power
. Operating frequency
is another key parameter, relay radio will inherit the BSSID'smode
,channel
andwidth
.Frequency Width
may halve and will cause channel'sBitrate
halving too.- 2.4GHz – 20/40MHz, 5GHz – 20/40/80MHz
4 Packages
On openwrt 18.06.1, wndr4300 only has 13.71MB space to install packages, on LEDE 17.01.4, only has 13.9MB space.
1 | opkg update |
4.1 usb storage
1 | opkg update |
4.2 koolproxy
1 | cat /proc/cpuinfo |
koolproxy may cause http website unavailable.
4.3 frp
1 | scp frpc.tar.xz root@192.168.1.1:/root |
Add to startup, or /etc/init.d/frpc, or /etc/rc.common, or /etc/rc.local
1 | tar -xJf /root/frpc.tar.xz -C /tmp |
Remember to write this conf file, or sleep 10 seconds before start frpc.
1 | [common] |
4.4 shadowsocksR
1 | scp ~/Downloads/luci-app-shaodwsocksR*_all.ipk root@192.168.1.1:/tmp/ |
If dnsmasq running but not working, check /etc/config/network.
1 | config interface 'wan' |
If GFW not working, add a line to /etc/dnsmasq.conf
1 | echo conf-dir=/etc/dnsmasq.ssr >> /etc/dnsmasq.conf |
/etc/china_ssr.txt /etc/dnsmasq.ssr/gfw_list.conf
4.5 aria2
1 | opkg update |
1 | enable-rpc=true |
5 Compile with SDK
5.1 prepare
Choose Ubuntu 16.04 x64 to compile
1
sudo apt-get install gawk libncurses5-dev libz-dev zlib1g-dev git ccache
Download corresponding SDK
1
2
3
4
5
6
7
8
9wget https://archive.openwrt.org/releases/17.01.4/targets/ar71xx/nand/lede-sdk-17.01.4-ar71xx-nand_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
xd -d lede-sdk-17.01.4-ar71xx-nand_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
tar -xf lede-sdk-17.01.4-ar71xx-nand_gcc-5.4.0_musl-1.1.16.Linux-x86_64
cd OpenWrt-SDK-*
### Update packages, may not necessary.
./scripts/feeds update
./scripts/feeds update packages base luci routing telephony
./scripts/feeds install libpcre zlib libopenssl
5.2 shadowsocksR-libev for OpenWrt2
1 | git clone https://github.com/ywb94/openwrt-ssr.git package/openwrt-ssr |
5.3 aria2
1 | ### Openwrt official aria2 package is outdated, so install another compiled version. |